﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogisticsCrawler.Core
{
    public sealed class ManagerFactory
    {
        // ------------------------------ 属性 ----------------------------------//
        private static object syncRoot = new Object();					// 同步对象
        private static ManagerCrawlerCompany _managerCrawlerCompany;    // manager

        // ------------------------------ 新操作器 字段 ----------------------------------//]
        /// <summary>
        /// 延迟加载
        /// </summary>
        public static ManagerCrawlerCompany ManagerCrawlerCompany
        {
            get
            {
                if (_managerCrawlerCompany == null)
                {
                    lock (syncRoot)
                    {
                        if (_managerCrawlerCompany == null)
                        {
                            _managerCrawlerCompany = new ManagerCrawlerCompany();
                        }
                    }
                }
                return _managerCrawlerCompany;
            }
        }
    }
}
